<!-- Modal -->
<div class="modal fade " id="addCapProductModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document" style="width: 70%">
        <div class="box box-info">
            <div class="box-header with-border">
                <h3 class="box-title">机构基本信息</h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form class="form-horizontal">
                <div class="box-body">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">项目名称：</label>
                        <div class="col-sm-3">
                            <input id="addCapProductModal_custName" type="text" class="form-control"
                                   style="width: 100%;" >
                            <input id="addCapProductModal_custId" type="hidden">
                        </div>
                        <label class="col-sm-2 control-label">项目简称：</label>
                        <div class="col-sm-3">
                            <input id="addCapProductModal_custName" type="text" class="form-control"
                                   style="width: 100%;" >
                            <input id="addCapProductModal_custId" type="hidden">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">发行机构：</label>
                        <div class="col-sm-3">
                            <input id="addCapProductModal_custType" type="text" class="form-control"
                                   style="width: 100%;" >
                        </div>
                        <label class="col-sm-2 control-label">利率：</label>
                        <div class="col-sm-3">
                            <input id="addCapProductModal_custType" type="text" class="form-control" style="width: 100%;" >
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">期限：</label>
                        <div class="col-sm-3">
                            <input id="addCapProductModal_custType" type="text" class="form-control"
                                   style="width: 100%;" >
                        </div>
                        <label class="col-sm-2 control-label">规模：</label>
                        <div class="col-sm-3">
                            <input id="addCapProductModal_custType" type="text" class="form-control" style="width: 100%;" >
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">发行日期：</label>
                        <div class="col-sm-3">
                            <input id="addCapProductModal_custType" type="text" class="form-control"
                                   style="width: 100%;" >
                        </div>
                        <label class="col-sm-2 control-label">状态：</label>
                        <div class="col-sm-3">
                            <select  class="form-control select2"  style="width: 100%;" >
                                <option>已发行</option>
                                <option>未发行</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">发行日期：</label>
                        <div class="col-sm-8">
                            <textarea id="addCapProductModal_custType" type="text" class="form-control"
                                      style="width: 100%;" >华泰人寿认购5个亿，中融人寿认购3个亿，昆仑健康8个亿在过会中
                            </textarea>
                        </div>
                    </div>
                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button id="btnSubmit" type="button" class="btn btn-primary pull-right"  onclick="addCapProductModal_save()">保存</button>
                </div>
                <!-- /.box-footer -->
            </form>
        </div>
    </div>
</div>

<script>


    function addCapProductModal_Init() {
        $("#addCapProductModal_custName").val("");

    }

    function addCapProductModal_SetValue(index) {
//        $("#windCodeDiv").css("display","none");
//        $("#changeEnterTypeBtn").css("display","none");
//        $("#addCapProductModal_custName").attr("disabled","disabled") ;
        var options = $("#institutionbaseinfoTable").bootstrapTable("getData");
        var row = options[index];
        $("#addCapProductModal_custName").val(row.custName);
//        var url = "/scorebasicdata/cust/info?issuerId=" + row.id;
//        getReq(url,function (result) {
//            if(result.length != 0) {
//                var data = result[0] ;
//                $("#addCapProductModal_custId").val(data.id);
//                $("#addCapProductModal_custName").val(data.custName);
//                $("input[name='addCapProductModal_isCityInvest'][value='" + data.isCityInvest + "']").attr("checked", 'true');
//                $("#addCapProductModal_externalEnvironment").val(data.externalEnvironment);
//                $("#addCapProductModal_businessOperation").val(data.businessOperation);
//                $("#addCapProductModal_financialPerformance").val(data.financialPerformance);
//            }
//        });

    }


    function addCapProductModal_save() {
        toastr['success']('操作成功', '提示');
        $("#table1").bootstrapTable("refresh");
        $("#addCapProductModal").modal("hide");
    }
</script>
